<?php
    include("../service/categoryService.php");
    include("../service/productService.php");
    
    $keyword = $_GET["keyword"];
    $result = getProductByName($keyword);
    $defaultOption = "<option value=''>Không Liên Kết</option>";
    $html = "";
    
    while($row = ConnectionManager::getInstance()->fetchArray($result)){
        $html .= "<option value='".$row["PRO_ID"]."'>".$row["PRO_NAME"]."</option>";
    }
    echo $defaultOption.$html;
?>
